package com.infore.statisticsAndAlarm.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.infore.statisticsAndAlarm.service.IStatisticsDataService;
import com.infore.statisticsAndAlarm.util.RedisUtil;

@Component
@Scope("prototype")
public class ScheduledTasks {

    @SuppressWarnings("unused")
    private static final Logger logger = LoggerFactory.getLogger(ScheduledTasks.class);

    @SuppressWarnings("unused")
    @Autowired
    private RedisUtil redisUtil;
    
    @Autowired
    IStatisticsDataService iStatisticsDataService;

    public void GetWaterDataJSon() {
        try {
            iStatisticsDataService.getDayDataList();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
